#!/bin/bash

# configuration
SERVICE_DIR=/service
TIMEOUT_MIN=15

# pause images
for FILE in $( find $SERVICE_DIR -name timestamp -mmin +$TIMEOUT_MIN -mindepth 2 -maxdepth 2 | grep -v "\." ) ; do
  svc -p `echo $FILE | sed 's/\/timestamp$//'`
done
